<?php

namespace App\Models;

use Illuminate\Database\Eloquent\SoftDeletes;
use Watson\Validating\ValidatingTrait;
use Illuminate\Database\Eloquent\Model;

class SpecialityOrientation extends Model
{
    use SoftDeletes;
    use ValidatingTrait;

    protected $table='xyj_speciality_orientation';


    protected $fillable = ['name'];

    protected $rules = [
        'name'          => 'required',
    ];

    protected $validationMessages = [
        'name.required'          => '专业方向名称必填',
    ];

    public static function getSpecialityOrientationList()
    {
        return self::select('id' , 'name')->lists('name','id')->toArray();
    }
}
